package com.data.platform.log.autoconfigure;

import ch.qos.logback.core.pattern.color.ForegroundCompositeConverterBase;
import com.data.platform.log.convert.CustomLogColorConvert;
import com.google.common.collect.Maps;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment;
import org.springframework.core.env.MapPropertySource;
import org.springframework.core.env.MutablePropertySources;

import java.util.HashMap;

@Configuration
public class LogConfiguration {

    @Bean
    public CustomLogColorConvert customLogColorConvert() {
        return new CustomLogColorConvert();
    }
}
